﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MoonLight.LibCommon;

namespace MoonLight.LibSession
{
    public class Session : Notifier
    {
        public Session()
        {
            m_sess_id = new SessionId();
            m_sess_id.SetId(DateTime.UtcNow.Ticks);
        }

        virtual public void Start() { }
        virtual public void Close() { }
        public SessionId GetSessionId() { return m_sess_id; }

        private SessionId m_sess_id;
    }

    public class SessionId
    {
        public Int64 GetId()
        {
            return m_id;
        }

        public void SetId(Int64 sess_id)
        {
            m_id = sess_id;
        }

        private Int64 m_id;
    }
}
